var utils = {
		
		getURLParameter: function(name) {
		    return decodeURI(
		        (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
		    );
		},

		htmlEncode: function (s){
		  var e = document.createElement("div");
		  e.innerText = e.textContent = s;
		  return e.innerHTML.replace(/"/g, "&quot;").replace(/#/,'&#035').replace(/'/,'&#039');
		}
};